// serve.js
const express = require('express');
const path = require('path');

const app = express();
const port = 3000;

// 设置静态文件目录
// 下面的可访问路径为：http://localhost:3000/simplevertexbuffer.html
app.use(express.static(path.join(__dirname, 'webgpufundamentals')));


app.get('/', (req, res) => {
  res.send('Hello WebGPU!');
});

app.listen(port, () => {
  console.log(`Example app listening at http://localhost:${port}`);
});